-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
de-opacify the logic behind how we choose to delete users from a hub db #5078
de-opacify the logic behind how we choose to delete users from a hub db #5078
Conversation
some sample output of a run (without deleting users, of course):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Described a potential issue.
some testing output from the class check with
and just to be sure,
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can omit the last_activity = asyncio
line? (was that for debugging?)
Also the isinstance
check now means you can omit the check for last_activity
in the new line 55. So it'd just be if was_active_last_day or user['server'] is not None:
.
this script was a little confusing to parse, so i added a type check, additional output and cleaned up a confusing
if
statement.